/* General Styles */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f0f4f8, #e8eaf6); /* Soft light gradient background */
  color: #333;
  scroll-behavior: smooth;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, rgb(255, 0, 170), rgba(236, 4, 4, 0.8)); /* Deep blue gradient with transparency */
  color: rgba(255, 0, 0, 0.836);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  border-radius: 0 0 80px 80px; /* Rounded bottom corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Soft shadow */
}

/* Hero Header Styling */
#hero h1 {
  font-size: 4.5em;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 1s ease-in-out; /* Fade in animation */
}

/* Scroll Button Style */
.scroll-button {
  background-color: white;
  color: #ff0000;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 50px; /* Fully rounded button */
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-button:hover {
  transform: translateY(-3px);
  background-color: #ff0080;
  color: rgb(255, 255, 255);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Deeper shadow on hover */
}

/* Container Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}
h3{
  color: #ff04b4;
}
/* Section Headings */
h2 {
  font-size: 2.5em;
  color: #ff04b4; /* Trendy blue for headings */
  margin-bottom: 20px;
  position: relative; /* For hover effect */
  border-bottom: 2px solid #1e3c72; /* Underline for emphasis */
  padding-bottom: 10px;
  transition: color 0.3s ease; /* Transition for color change */
}

h2:hover {
  color: #fa0764; /* Darker shade on hover */
}

/* Topic Card Styles */
.topic-card {
  background: rgba(255, 255, 255, 0.8); /* Glass effect with transparency */
  border-radius: 15px; /* Slightly rounded corners for gentleness */
  padding: 20px;
  margin: 15px 0; /* Increased spacing between cards */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Soft shadow */
  transition: transform 0.3s, box-shadow 0.3s; /* Transition for hover effects */
  position: relative; /* For hover effect */
  overflow: hidden; /* Prevent overflow of rounded corners */
  width: 100%; /* Full width */
  max-width: 350px; /* Maximum width for card */
  display: inline-block; /* Align cards in a row */
  text-align: center; /* Center align text inside card */
  perspective: 1000px; /* Set perspective for 3D effect */
}

.topic-card:hover {
  transform: translateY(-8px) rotateY(5deg); /* Lift and rotate effect */
  box-shadow: 0 8px 30px rgb(255, 0, 128); /* Deeper shadow on hover */
}

/* Topic Image Styles */
.topic-image {
  border-radius: 15px; /* Matching rounded corners */
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  #hero h1 {
      font-size: 3.5em; /* Smaller header for mobile */
  }

  h2 {
      font-size: 2em; /* Smaller subheading for mobile */
  }

  .topic-card {
      max-width: 90%; /* Full width on smaller screens */
      margin: 10px auto; /* Center align cards */
  }

  .scroll-button {
      font-size: 1em; /* Smaller button text on mobile */
  }
}

/* Keyframes for fade-in animation */
@keyframes fadeInDown {
  from {
      opacity: 0;
      transform: translateY(-20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
